<%@ page language="java" contentType="text/html; charset=UTF-8" import = "isg3.*, java.util.*, javax.servlet.*"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Firmar Evento</title>
</head>
<body>
<%
Calendar c = Calendar.getInstance();
c.set(5,27,2000);
Calendar d = c;
d.add(Calendar.DAY_OF_MONTH, 10);
Calendar e = Calendar.getInstance();
e.add(Calendar.DAY_OF_MONTH, 30);
List listacomente1= new LinkedList();
List listacoment2 = new LinkedList();
Usuario user1 =  new Usuario("asdf@gmail.com","mipass","pepe");
Persona user2 =  new Persona("12131231", true, "paco","Lopez Martens", null , "pacome", "passwd", "pacome@kjfs.es");
Evento noGuerra = new Evento();
Evento noParo = new Evento();

String sIDeven=request.getParameter("idevento");
int IDeven= (int) Integer.parseInt(sIDeven);
Object o=session.getAttribute("session.user");
if (o!=null){
String Idper=o.toString();
}else{
out.println("Session Nula");	
}

/*Poner aquí el código de acceso de la base de datos de recuperación del evento y el usuario*/

GestionDeFirmas gf= new GestionDeFirmas();
gf.firmarEvento(noGuerra,user2);

out.println("se ha firmado correctamente");

%>
</body>
</html>